import http from '@/utils/http'

/**
 * 删除操作日志
 * @param id
 */
export function deletedOperate(id) {
    return http({
        url: '/api/logger/deleteByOperate/'+id,
        method: 'get'
    })
}

/**
 * 获取操作日志详情
 * @param id
 */
export function httpOperateObject(id) {
    return http({
        url: '/api/logger/getByOperateDetail/'+id
    })
}

/**
 * 获取操作日志列表
 * @param query
 */
export function httpOperateList(query) {
    return http({
        url: '/api/logger/selectLoggerByOperate',
        method: 'post',
        data: query
    })
}


/**
 * 删除错误日志
 * @param id
 */
export function deletedError(id) {
    return http({
        url: '/api/logger/deleteByError/'+id,
        method: 'get'
    })
}

/**
 * 获取错误日志详情
 * @param id
 */
export function httpErrorObject(id) {
    return http({
        url: '/api/logger/getByErrorDetail/'+id
    })
}

/**
 * 获取错误日志列表
 * @param query
 */
export function httpErrorList(query) {
    return http({
        url: '/api/logger/selectLoggerByError',
        method: 'post',
        data: query
    })
}



/**
 * 删除登录日志
 * @param id
 */
export function deletedLogin(id) {
    return http({
        url: '/api/logger/deleteByLogin/'+id,
        method: 'get'
    })
}

/**
 * 获取登录日志详情
 * @param id
 */
export function httpLoginObject(id) {
    return http({
        url: '/api/logger/getByLoginDetail/'+id
    })
}

/**
 * 获取登录日志列表
 * @param query
 */
export function httpLoginList(query) {
    return http({
        url: '/api/logger/selectLoggerByLogin',
        method: 'post',
        data: query
    })
}

